import 'package:cream_chat_flutter/globals/ThemeProvider.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'HomeTabPageProvider.dart';
import 'UserBaseInfoItem.dart';

class BuildRecommendUsers extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _BuildRecommendUsersState();

}

class _BuildRecommendUsersState extends State<BuildRecommendUsers> {
  @override
  Widget build(BuildContext context) {
    return Consumer2(builder: (BuildContext context, ThemeProvider tp, HomeTabPageProvider htp, Widget child)=>SliverList(
        delegate: SliverChildBuilderDelegate(
              (context, index) {
            return getUserBaseInfoItem(tp, htp.recommendUsers[index]);
          },
          childCount: htp.recommendUsers.length,
        ))
    );
  }

}